
# tuple_1=(123,'abc',False,6.7,(1,2,3),[2,'a'])
# # print(tuple_1[4][2])
# print (tuple_1[1:4:3])
# # tuple_2=(123,'abc','离开')
# # # print (type(tuple_2))
# # print (len(tuple_2))
# list_1=[1,True,'3ASC',5.7]
# # print(list_1[2])
# # print(list_1[0:3:2])
# # print(list_1[:2])
# list_1.append('b')
# # list_1.insert(0,333)
# # list_1[0]=44
# list_1[:3:]='a','b','c'
# list_1.remove('b')
# list_1.clear()
# print(list_1)
# list_2=['abc','skl','汉字','抗裂砂浆啊','a']
# list_2.sort()
# print(list_2)
# score=int(input('请输入成绩'))
# if score<0 or score>100:
#    print('请输入正确的成绩范围')
# elif score>=90:
#    print('优秀')
# elif score>=80:
#    print('号')
# elif score>=70:
#    print('良好')

# score=int(input('请输入日期'))
# if score>=1 and score<=5:
# print('工作日')
# elif score>=6 and score<=7:
#     print('周末')
# else:
#     print('错误')

# digits = input('请输入两个数字：')
# firstno = int(digits[0])
# secondno = int(digits[-1])
# if firstno >= secondno:
#     print(digits)
# else:
#     a = firstno
#     firstno = secondno
#     secondno = a
#     newno = firstno*10+secondno
#     print(newno)



# one=int(input('第一位数'))
# # # two=int(input('第二位数'))
# # # if one>=two:
# # #     print(one*10+two)
# # # else:
# # #     print(two*10+one)

# sj=int(input('输入正确时间'))
# if 1<=sj<=24:
#  if 8<=sj<=18:
#     print("现在是白天")
#     if 8<=sj<=12:
#       print('上午')
#     elif 13<=sj<=14:
#       print('中午')
#     else:
#       print('下午')
#   else:
#     print("现在是晚上")
#     if 19<= sj<=24:
#        print('夜晚')
#     if sj<=7:
#        print('半夜')
# else:
#     print('数据错误')


# for i in 'abcd':
#     print(i)


# num=0
# num2=1
# for a in range(10):
#     num=num+num2
#     num2=num2+1
# print(num)

# for i in range(7,0,-1):
#       print((7-i)*' '+i*'*')


# for i in range(1,51,2):
#     print(i)

# a=[]
# b=[]
# for i in range(1,101):
#     if i%2==0:
#         a.append(i)
#     else:
#         b.append(i)
# print(a,'\n',b)

# a=[]
# for i in range(1,101):
#     if i%3==0:
#   a.append(i)
# print(a)

# a=[]
# b=[]
# c=[]
# sta=['我都是','大大','大敌当前','安定区','沙发清单','沙发上纯出租车a','阿达']
# for i in sta:
#  if len(i)==2:
#      a.append(i)
#  elif len(i)==3:
#      b.append(i)
#  else:
#      c.append(i)
# print(a,'\n',b,'\n',c)
#
# a=0
# b=0
# while b<=100:
#     b=b+1
#     a=a+b
# print(a)

# a=1
# while a<101:
#   if a%3!=0:
#    print(a)
#   a+=1


import random

# 出拳
punches = ['石头', '剪刀', '布']
computer_choice = random.choice(punches)
user_choice = ''
user_choice = input('请出拳：（石头、剪刀、布）')  # 请用户输入选择
while user_choice not in punches:
    print('输入有误，请重新出拳')  # 当用户输入错误，提示错误，重新输入
    user_choice = input()